The Slow Poke
^^^^^
**Definition:**
* Usually, it puts the test suite to execution and takes longer to finish and give the developer feedback.
**Also Known As:**
* Slow Test
**Code Example:**
.. code-block:: javascript
test('shoutd show Buggy on user interaction by keyboard', done => {
const wrapper = mount(
);
setTimeout(() => {
wrapper .update();
expect (wrapper.find('BuggySleepy'). length).toBe(1);
}
**References:**
.. admonition:: Quality attributes
* :octicon:`file-code;1em` - Code Example
* :octicon:`comment-discussion;1em` - Cause and Effect
* :octicon:`graph;1em` - Frequency
* :octicon:`sync;1em` - Refactoring
* `Anti-Patterns - Digital Tapestry `_
* `TDD anti patterns - Chapter 1 `_ :octicon:`file-code;1em`
* `TDD anti-patterns - the liar, excessive setup, the giant, slow poke `_ :octicon:`file-code;1em`
* `Test-Driven Development: TDD Anti-Patterns `_
* `Unit Testing Anti-Patterns, Full List `_
* `Unit testing Anti-patterns catalogue `_